import { io } from "socket.io-client";

const socket = io("http://lianghj.top:9999", {
  transports: ["websocket"]
});

export const sendAllMsg = (data: any) => {
  socket.emit("sendMsg", data);
};

console.log("发送事件");
export default socket;
